package org.nobody.mallb2c.mallauth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 3489309323@qq.com
 * @create 2020-09-16-19:32
 */
@Configuration
public class MallWebConfig implements WebMvcConfigurer {
  @Override
  public void addViewControllers(ViewControllerRegistry registry) {
    /*
      @GetMapping("/login.html")
      public String loginPage(){
        return "login";
      }
    * */
//    registry.addViewController("/login.html").setViewName("login");
    registry.addViewController("/reg.html").setViewName("reg");
  }
}
